﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace EFong.Contract
{
    [DataContract]
    public class PFlightOrder
    {
        private Guid _id = Guid.NewGuid();
        [DataMember]
        public Guid ID
        {
            get { return _id; }
            set { _id = value; }
        }

        private string _练习电话 = string.Empty;
        [DataMember]
        public string 练习电话
        {
            get { return _练习电话; }
            set 
            { 
                  _练习电话 = value.Replace('$' , ' '); 
            }
        }

        private string _联系人 = string.Empty;
        [DataMember]
        public string 联系人
        {
            get { return _联系人; }
            set { _联系人 = value; }
        }

        private string _备注 = string.Empty;
        [DataMember]
        public string 备注
        {
            get { return _备注; }
            set { _备注 = value; }
        }

        private string _订单号 = string.Empty;
        [DataMember]
        public string 订单号
        {
            get { return _订单号; }
            set { _订单号 = value; }
        }

        private decimal _总金额;
        [DataMember]
        public decimal 总金额
        {
            get { return _总金额; }
            set { _总金额 = value; }
        }

        private string _结算方式 = string.Empty;
        [DataMember]
        public string 结算方式
        {
            get { return _结算方式; }
            set { _结算方式 = value; }
        }

        private string _经办人 = string.Empty;
        [DataMember]
        public string 经办人
        {
            get { return _经办人; }
            set { _经办人 = value; }
        }

        private string _订单人 = string.Empty;
        [DataMember]
        public string 订单人
        {
            get { return _订单人; }
            set { _订单人 = value; }
        }

        private string _客户地址 = string.Empty;
        [DataMember]
        public string 客户地址
        {
            get { return _客户地址; }
            set { _客户地址 = value; }
        }

        private string _客户名称 = string.Empty;
        [DataMember]
        public string 客户名称
        {
            get { return _客户名称; }
            set { _客户名称 = value; }
        }

        private DateTime _deliveryDate;
        [DataMember]
        public DateTime DeliveryDate
        {
            get { return _deliveryDate; }
            set { _deliveryDate = value; }
        }

        private List<PFlightOrderDetail> _details = new List<PFlightOrderDetail>();
        [DataMember]
        public List<PFlightOrderDetail> Details
        {
            get { return _details; }
            set { _details = value; }
        }
    }
}
